<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>CreateUser</title>    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    
<script type="text/javascript">
    
    $(document).ready(function() {
    $("#form-sign-up").validate({
            rules: {
                password: {
                    required: true,
                    minLength: 8
                },
                confirm_password: {
                    required: true,
                    minlength: 8,
                    equalTo: "#password"
                }
            },
            messages: {
                confirm_password: {
                    required: "Please provide a password",
                    minLength: "Your password must be at least 8 characters long",
                    equalTo: "Please enter the same password as above"
                }
            }
        });
    });
</script>


    <form action="<%=Url.Action("CreateUser", "Company")%>" method="post" id="form-sign-up">
    <table>
        <tr>
            <td>
                Login (Try with cibrax):
            </td>
            <td class="field">
                <input type="text" name="login" id="login" />
            </td>
        </tr>
        <tr>
            <td>
                Email:
            </td>
            <td class="field">
                <input type="text" name="email" id="email" class="required email" />
            </td>
        </tr>
        <tr>
            <td>
                Url:
            </td>
            <td class="field">
                <input type="text" name="url" id="url" class="required url" />
            </td>
        </tr>
        <tr>
            <td>
                Password:
            </td>
            <td class="field">
                <input type="password" name="password" id="password" />
            </td>
        </tr>
        <tr>
            <td>
                Password Confirm:
            </td>
            <td class="field">
                <input type="password" name="confirm_password" id="confirm_password" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" />
            </td>
        </tr>
    </table>
    </form>
</asp:Content>
